package com.cxm.homework7.aspectJ.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("com/cxm/homework7/aspectJ/xml/spring-config.xml");
        UserDao userDao = (UserDao) ac.getBean("userDao");
        userDao.add();
        System.out.println("--------------");
        userDao.del();
    }
}
